Thorium based nuclear reactor